﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace WebPlatform.Models
{
    public class LinksVM
    {


        public int Id { get; set; }


        public int CompanyId { get; set; }


        [DisplayName("标题")]
        [StringLength(25, ErrorMessage = "标题 不超过25个字符")]
        [Required(ErrorMessage = "标题 必填（25个字符以内）")]
        public string Title { get; set; }


        [DisplayName("链接地址")]
        [StringLength(255, ErrorMessage = "链接地址 不超过255个字符")]
        [Required(ErrorMessage = "链接地址 必填（255个字符以内）")]
        public string Url { get; set; }


        public string ImgUrl { get; set; }


        /// <summary>
        /// 类别
        /// </summary>
        public string Types { get; set; }


    }
}